(function($){
  $().ready(function(){

    //饼状图
    var getScore=eval($('#container').attr('getScore'));   //得分
    var loseScore=eval($('#container').attr('loseScore'));   //失分



    $('#container').highcharts({
          chart: {
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false,
            type: 'pie'
          },
          credits: {
            text: '',
            href: ''
          },
          title: {
            text: '企业评分饼图'
          },
          tooltip: {
            pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
          },
          plotOptions: {
            pie: {
              allowPointSelect: true,
              cursor: 'pointer',
              dataLabels: {
                enabled: false
              },
              showInLegend: true
            }
          },
          series: [{
            name: "Brands",
            colorByPoint: true,
            data: [{
              name: "得分情况",
              y: getScore
            }, {
              name: "失分情况",
              y: loseScore
            }]
          }]
        });


    

      


  })
})(jQuery);
